/*
 * LoginScreen.java
 *
 * Created on August 14, 2006, 10:57 PM
 */
package com.floreantpos.ui.views;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.CompoundBorder;
import javax.swing.border.EmptyBorder;
import javax.swing.border.EtchedBorder;

import net.miginfocom.swing.MigLayout;

import com.floreantpos.IconFactory;

/**
 *
 * @author MShahriar
 */
public class LoginScreen extends JPanel {

  public final static String VIEW_NAME = "LOGIN_VIEW";

  private JLabel imageComponent;
  private PasswordScreen passwordScreen;

  /**
   * Creates new form LoginScreen
   */
  public LoginScreen() {
    setLayout(new MigLayout("ins 20 10 20 10, fill", "[fill,growprio 100,grow][]", ""));

    imageComponent = new JLabel(IconFactory.getIcon("floreo-pdv.png"));
    imageComponent.setBorder(new EtchedBorder());

    add(imageComponent, "spany,grow,flowx");

    passwordScreen = PasswordScreen.getInstance();
    passwordScreen.setBorder(new CompoundBorder(new EtchedBorder(), new EmptyBorder(5, 5, 12, 5)));
    add(passwordScreen, "width 200,growy 100");
  }

  public void setVisible(boolean aFlag) {
    super.setVisible(aFlag);
  }
}
